<template>
  <div class="block">
    <span class="demonstration">默认</span>
    <el-slider v-model="sliderValue"></el-slider>
    <el-button type="success" @click="download">下载图片</el-button>
  </div>
</template>

<script>

import downloader from '../lib/downloader'

export default {
  data() {
    return { sliderValue: 50 }
  },
  mounted: function() {
    
  },
  methods: {
    download() {
      downloader.downlowd('/images/bg.8b605894.png', 'bg.png')
    }
  }
}
</script>

<style scoped>
@import '../css/common.css';
.test {
  color: rgb(65, 67, 161);
  background-image: url(../img/bg.png);
  background-repeat: no-repeat;
}
</style>